<%@page import="dt.inlee.system.vo.SysUserLoginBean"%>
<%@page import="dt.inlee.domain.SysUser"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head id="Head1">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

		<script type="text/javascript"
			src="<%=path%>/resource/js/jquery/1.6.2/jquery-1.6.2.min.js">
		</script>
		<script type="text/javascript"
			src="<%=path%>/resource/js/jquery-easyui-1.3.3/jquery.cookie.js">
		</script>
		<link id="easyuiTheme" rel="stylesheet" type="text/css"
			href="<%=path%>/resource/js/jquery-easyui-1.3.3/themes/theme.css"></link>	
		<script type="text/javascript" charset="UTF-8"
			src="<%=path%>/resource/js/jquery-easyui-1.3.3/changeEasyUITheme.js">
		</script>
		<link rel="stylesheet" type="text/css"
			href="<%=path%>/resource/js/jquery-easyui-1.3.3/themes/icon.css"></link>
		<script type="text/javascript"
			src="<%=path%>/resource/js/jquery-easyui-1.3.3/jquery.easyui.min.js">
		</script>
		<script type="text/javascript" charset="UTF-8"
			src="<%=path%>/resource/js/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js">
		</script>
		
		<!-- INDEX.JS -->
		<script type="text/javascript" src="<%=path%>/index.js">
		</script>
		<%-- <script type="text/javascript" charset="UTF-8" src="<%=path%>/js/common/util/v_1_0/error.js">
		</script> --%>
		<!--  -->
		<script type="text/javascript"
			src="<%=path%>/resource/js/jquery/jstree/v_1_0rc2/jquery.jstree.js">
		</script>
		<!-- 选项卡鼠标右键事件 -->
		<script type="text/javascript" src="<%=path%>/resource/js/jquery/outlook.js">
		</script>
		
		
		<script type="text/javascript">
//关闭当前tab
function closeTab(t_txt) {
	$('#tabs').tabs('close', t_txt);
}

/**
 * 打开用户信息修改界面
 */
function userUpdate() {
	<% SysUserLoginBean sysUserLoginBean = (SysUserLoginBean) session.getAttribute("loginUser");%>
	var userId = "<%=sysUserLoginBean.getId() %>";
	if (userId != null && userId != '') {
	$.post("findSysUser?sysUserBean.id=" + userId, '',
		function(json) {
			$("#realName").val(json.sysUserBean.realName);
			$("#userName").val(json.sysUserBean.userName);
			//$("#password").val(json.sysUserBean.password);
			$("#identityCard").val(json.sysUserBean.identityCard);
			//$("#sysOrganizationIDs").val(
			//	json.sysUserBean.sysOrganizationIDs);
			//$("#orgNames").val(json.sysUserBean.orgNames);
			//$("#sysRoleIDs").val(json.sysUserBean.sysRoleIDs);
			//$("#roleName").val(json.sysUserBean.roleName);
			$("#mobile").val(json.sysUserBean.mobile);
			//$("#id").val(json.sysUserBean.id);
			//$("#opsName").val('update');
			//$('#wyId').val(json.sysUserBean.wyId);
			$('#companyName').val(json.sysUserBean.enterpriseName);
			$('#userName').attr("readonly", "readonly");// 用户名禁止修改
			$("#companyName").attr("readonly", "readonly");
			$("#identityCard").attr("readonly", "readonly");
			$("#mobile").attr("readonly", "readonly");
			$("#realName").attr("readonly", "readonly");
			});
		//$('#reFlash').hide();// 隐藏刷新按钮
		$('#userUpadte').dialog('open');
	} else {
		$.messager.alert('提示', "加载数据失败请稍候再试！");
	}
}

/* function changeSelect(){
	if($('#changeColor').val() != null && $('#changeColor').val() != ''){
		changeThemeFun($('#changeColor').val());
	}
} */
</script>
<style type="css/text">
	.jstree li {min-height: 23px;line-height: 23px;}
.jstree > ul > li:first-child{padding-top:7px}
</style>
	</head>

	<body class="easyui-layout" style="overflow-y: hidden" scroll="no">
		<!-- person set start -->
		<ul id="setPanle" 
			class="navbar user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
			<!-- <li><a href="#"> <i class="icon-cog"></i> 设置
			</a></li> -->
			<li><a href="javascript:userUpdate();"> <i class="icon-user"></i> 个人资料
			</a></li>
			<li class="divider"></li>
			<li><a href="exitLogin"> <i class="icon-off"></i> 退出
			</a></li>
		</ul>
		<!-- person set end -->
		<!-- page tab sart  -->
		<div id="mm" class="easyui-menu" style="width: 150px;">
			<div id="mm-tabclose">
				关闭
			</div>
			<div id="mm-tabcloseall">
				全部关闭
			</div>
			<div id="mm-tabcloseother">
				除此之外全部关闭
			</div>
			<div class="menu-sep"></div>
			<div id="mm-tabcloseright">
				当前页右侧全部关闭
			</div>
			<div id="mm-tabcloseleft">
				当前页左侧全部关闭
			</div>
		</div>
		<!-- page tab end  -->
		<div region="south" split="true"
			style="height: 30px; text-align: center;">
			<div class="footer" style="margin-top: 5px;">
				<span id="bgclock">物联力浪物业管理平台</span>
			</div>
		</div>
		<div region="north" id="topHead"
			style="height: 47px; overflow: hidden; width: 100%;">
			
<%-- 			<div style="float: left; width: 100%; height: 80px; background:url('<%=path%>/css/images/ywpt_banner.png')">	</div>
 --%>			 
			<%-- <div style="float: left; width: 100%; height: 70px;">
				<div style="float: left">
					<img src="<%=path%>/css/images/YD_LOGO1.png" />
				</div>
				<div style="float: right; height:100%; padding-top: 10px; padding-right: 5px; margin:0px 20px 0px 0px; overflow: hidden;">
					<div style="color: #666">
						&nbsp;欢迎 ${loginUser.realName } 登录!
						<a href="exitLogin"
							style="color: #6CAEF5; text-decoration: none; font-weight: bold;">注销</a>
						<br />
						<select id="changeColor" onchange="changeSelect();">
							<option value="">
								请选择主题
							</option>
							<option value="metro-blue" style="color: #6CAEF5">
								metro-蓝
							</option>
							<option value="metro-gray" style="color: #84909C">
								metro-灰
							</option>
							<option value="metro-green" style="color: #C8D47B">
								metro-绿
							</option>
							<option value="metro-orange" style="color: #F7CC8F">
								metro-橙
							</option>
							<option value="metro-red" style="color: #F09090">
								metro-红
							</option>
						</select>
					</div>
				</div>
			</div> --%>
			<jsp:include page="/page/head/top.jsp" ></jsp:include>
		</div>
	

		<div region="west" split="false" title="导航菜单"
			style="width: 200px; padding1: 1px; overflow: hidden;">
			<div id='wnav' class="easyui-accordion" fit="true" border="false">
				<!--  导航内容 -->
			</div>
		</div>


		<!-- 主内容开始 -->
		<div region="center" style="overflow: hidden;">
			<div id="tabs" class="easyui-tabs" fit="true" border="false">
				<div title="工作台" style="padding: 0px; overflow: hidden;">
<%-- 						<jsp:include page="/page/bs/assistFunction/portal/portalMain.jsp" ></jsp:include>
 --%>				</div>
			</div>
		</div>
		<!-- 主内容结束 -->
		
		<!--用户信息修改界面开始 -->
	<div id="userUpadte" class="easyui-dialog"
			style="width: 614px; height: 150px;"
			data-options="title:'个人资料',modal:false,closed:true">
	   <!--  <form method="post" id="sysUserForm"> -->
			<table style="width: 99%;height: 99%; text-align:center;" border="0">
				<tr>
					<td width="20%">姓名：</td>
					<td width="30%" align="left">
						<input class="easyui-validatebox" name="sysUserBean.realName" id="realName"
						 data-options="required:true" />
					</td>
					<td width="20%">用户名：</td>
					<td width="30%" align="left">
						<input class="easyui-validatebox" type="text" name="sysUserBean.userName" 
						id="userName" data-options="required:true" />
					</td>
				</tr>
				<tr>
					<td>身份证号：</td>
					<td align="left">
						<input type="text" name="sysUserBean.identityCard"
								id="identityCard"  maxlength="18" />
					</td>
					<td>手机号码：</td>
					<td align="left">
						<input type="text" name="sysUserBean.mobile" id="mobile" />
					</td>
				</tr>
				<tr>
					<td>所属物业公司</td>
					<td align="left">
						<input type="text" name="sysUserBean.enterpriseName" class="easyui-validatebox" data-options="required:true" 
							id="companyName" readonly="readonly"/>
					</td>
					<td></td>
					<td align="left"></td>
				</tr>
			</table>
		<!-- </form> -->
	</div>
	<!-- 用户信息修改结束 -->
	</body>
</html>
